/**
 * @author 杨执信
 * @router 中台路由搭建，后台登录访问的地址
*/

/* eslint-disable */
'use strict'

module.exports = app => {
  const { router, controller } = app
  var adminauth = app.middleware.adminauth()
  router.post('/admin/checkLogin', controller.admin.main.checkLogin)
  router.get('/admin/getArticleType', controller.admin.main.getArticleType)
  router.post('/admin/addArticle', controller.admin.main.addArticle)
  router.post('/admin/updataArticle', controller.admin.main.updataArticle)
  router.get('/admin/getArticleList', controller.admin.main.getArticleList)
  router.get('/admin/deleteArticle/:id', controller.admin.main.deleteArticle)
  router.get('/admin/getArticleById/:id', controller.admin.main.getArticleById)
}